package org.itboys.seller.entity;

import org.itboys.seller.constant.CaliforniaSiteConstant;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
import org.mongodb.morphia.annotations.NotSaved;

/**
 * 商家登陆账号
 * @author weisky
 *
 */
@Entity(value = "SiteUserEdit", noClassnameStored = true)
public class SiteUserEdit extends BaseSellerEntity {
	
	private static final long serialVersionUID = -1468794516259173082L;

    @Indexed
    private long userId;

    private String realName;

    private String companyName;

    private String idCard;

    @Indexed
    private String memberName;

    @Indexed
	private String phone;

    private String password;

    @Indexed
    private long recUserId; //推荐人ID

    @Indexed
    private long recUserId2; //推荐人ID

    @Indexed
    private String sellerUserName; //在哪个代理商注册的

    @NotSaved
    private int actualScore;

	private int state = CaliforniaSiteConstant.TYPE_ONE;//账号状态  0：冻结  1：未激活  2: 激活

    private String reason;

    private int auditState;//审核状态  0:待审核 1:审核通过  2:审核驳回

    private String auditName;

	private Long loginTime;//最后登入时间

	private String loginIp;//最后登入IP

    private int type; //审核记录类型   0:注册  1:修改  2:冻结

    private int chargeAmount;

    private int memberType; //会员类型，0  总代，1 服务商，2 分服务商

    private String area;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getRecUserId() {
        return recUserId;
    }

    public void setRecUserId(long recUserId) {
        this.recUserId = recUserId;
    }

    public String getSellerUserName() {
        return sellerUserName;
    }

    public void setSellerUserName(String sellerUserName) {
        this.sellerUserName = sellerUserName;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getAuditState() {
        return auditState;
    }

    public void setAuditState(int auditState) {
        this.auditState = auditState;
    }

    public int getActualScore() {
        return actualScore;
    }

    public void setActualScore(int actualScore) {
        this.actualScore = actualScore;
    }

    public Long getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Long loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getChargeAmount() {
        return chargeAmount;
    }

    public void setChargeAmount(int chargeAmount) {
        this.chargeAmount = chargeAmount;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }

    public int getMemberType() {
        return memberType;
    }

    public void setMemberType(int memberType) {
        this.memberType = memberType;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public long getRecUserId2() {
        return recUserId2;
    }

    public void setRecUserId2(long recUserId2) {
        this.recUserId2 = recUserId2;
    }
}
